﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExecuteTSScriptMethod
{
	public static class Log
	{
		public static void Write(string text)
		{
			if (!string.IsNullOrEmpty(text))
			{
				try
				{
					using (StreamWriter w = File.AppendText("d://log.txt"))
					{
						w.WriteLine("{0} :: {1} ", DateTime.Now.ToString(), text);
					}
				}
				catch
				{
				}
				
			}			
		}
	}
}
